<?php

class User_Form_Login extends Nuo_Form
{

	public function init()
	{

		$this -> setTitle('Login') -> setDesc('form-desc.User Login');

		$this -> setAction(Nuo::getUrl('user/login'));

		/**
		 * text button
		 */
		$this -> addChild('text', 'username', array('label' => 'Email'));

		/**
		 * password button
		 */

		$this -> addChild('password', 'password', array('label' => 'Password'));
		
		$this -> addChild('checkbox', 'remember', array('label' => 'Remember Me'));


		/**
		 * submit button
		 */
		$this -> addChild('group', 'footer');

		$this -> footer -> addChild('submit', '_submit', array('label' => 'Login'));
		
		$this -> addChild('partial', 'sociallogin', array('script' => 'user/view/partial/form/sociallogin'));

	}

}
